export const vertex = /* wgsl */ `

struct Out{
  @builtin(position) position:vec4<f32>,
  @location(0) vPosition:vec3<f32>
}

@vertex
fn main(@location(0) pos: vec3<f32>) -> Out {
  var out: Out;
  out.position = vec4<f32>(pos, 1.0);
  out.vPosition = pos;
  return out;
}
`;

export const fragment = /* wgsl */ `
@fragment
fn main(@location(0) vPosition: vec3<f32>) -> @location(0) vec4<f32> {
  var pos = vPosition;
  var z = pos.z;
  var x = pos.x;
  return vec4<f32>(z,x,1.0-z,1.0);
}
`;